/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.http;

import com.xuexiang.templateproject.bean.AiDetailEntity;
import com.xuexiang.templateproject.bean.AppConfigEntity;
import com.xuexiang.templateproject.bean.BannerListEntity;
import com.xuexiang.templateproject.bean.ChildEntity;
import com.xuexiang.templateproject.bean.CleanEntity;
import com.xuexiang.templateproject.bean.CuotiEntity;
import com.xuexiang.templateproject.bean.GradeEntity;
import com.xuexiang.templateproject.bean.GroupRecordEntity;
import com.xuexiang.templateproject.bean.HomeEntity;
import com.xuexiang.templateproject.bean.ImageBoxEntity;
import com.xuexiang.templateproject.bean.ImageEntity;
import com.xuexiang.templateproject.bean.ImageUploadEntity;
import com.xuexiang.templateproject.bean.LoginEntity;
import com.xuexiang.templateproject.bean.MatchEntity;
import com.xuexiang.templateproject.bean.MatchV2Entity;
import com.xuexiang.templateproject.bean.MyCentreEntity;
import com.xuexiang.templateproject.bean.OptionsEntity;
import com.xuexiang.templateproject.bean.OrderEntity;
import com.xuexiang.templateproject.bean.PaperConfig;
import com.xuexiang.templateproject.bean.PaperIdsEntity;
import com.xuexiang.templateproject.bean.PrintConfigEntity;
import com.xuexiang.templateproject.bean.PrintEntity;
import com.xuexiang.templateproject.bean.PrintV2Entity;
import com.xuexiang.templateproject.bean.ProblemDetailEntity;
import com.xuexiang.templateproject.bean.ProductEntity;
import com.xuexiang.templateproject.bean.QueryFinishEntity;
import com.xuexiang.templateproject.bean.SubjectManagerEntity;
import com.xuexiang.templateproject.bean.UploadEntity;
import com.xuexiang.templateproject.bean.UploadPdfEntity;
import com.xuexiang.templateproject.bean.VideoDetailEntity;
import com.xuexiang.templateproject.bean.VideoItemEntity;
import com.xuexiang.templateproject.bean.VideoTextBookEntity;
import com.xuexiang.templateproject.bean.VideoUrlEntity;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import kotlin.Metadata;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface ApiService {

    /* compiled from: ApiService.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* renamed from: d.m.b.c.a$a  reason: collision with other inner class name */
    /* loaded from: classes2.dex */
    public static final class C0196a {
        public static /* synthetic */ Observable ApiService(ApiService aVar, String str, String str2, int i2, int i3, Object obj) {
            if (obj == null) {
                if ((i3 & 2) != 0) {
                    str2 = "Android";
                }
                return aVar.J(str, str2, i2);
            }
            throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: savePushId");
        }
    }

    @FormUrlEncoded
    @POST("/api/user/saveCourse.do")
    @NotNull
    Observable<BaseResponse<SubjectManagerEntity>> A(@Field("operation") int i2, @Field("courseId") int i3, @Field("courseName") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/paper/savePrintConfig.do")
    @NotNull
    Observable<BaseResponse<PrintConfigEntity>> B(@Field("printTag") boolean z, @Field("printAnswerArea") boolean z2, @Field("printAnswer") boolean z3);

    @FormUrlEncoded
    @POST("/api/user/saveCourse.do")
    @NotNull
    Observable<BaseResponse<SubjectManagerEntity>> C(@Field("operation") int i2, @Field("courseName") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/video/finish.do")
    @NotNull
    Observable<BaseResponse<Object>> D(@Field("textbookId") int i2, @Field("videoKey") @NotNull String str);

    @POST("/api/cuoti.input/matchV2.do")
    @NotNull
    Observable<BaseResponse<MatchV2Entity>> E(@Body @NotNull RequestBody zVar);

    @FormUrlEncoded
    @POST("/api/cuotiReplenish/submit.do")
    @NotNull
    Observable<BaseResponse<Object>> F(@FieldMap @NotNull Map<String, String> map);

    @FormUrlEncoded
    @POST("/api/cuoti/update.do")
    @NotNull
    Observable<BaseResponse<Object>> G(@FieldMap @NotNull Map<String, String> map);

    @FormUrlEncoded
    @POST("/api/sale/createOrder.do")
    @NotNull
    Observable<BaseResponse<OrderEntity>> H(@Field("productId") int i2, @Field("paymethod") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/homepage/viewV2.do")
    @NotNull
    Observable<BaseResponse<HomeEntity>> I(@Field("grade") int i2);

    @FormUrlEncoded
    @POST("/api/user/savePush.do")
    @NotNull
    Observable<BaseResponse<Object>> J(@Field("pushId") @NotNull String str, @Field("device") @NotNull String str2, @Field("notice") int i2);

    @FormUrlEncoded
    @POST("/api/paper/allPaperIds.do")
    @NotNull
    Observable<BaseResponse<PaperIdsEntity>> K(@FieldMap @NotNull HashMap<String, Integer> hashMap, @Field("desc") boolean z);

    @FormUrlEncoded
    @POST("/api/paper/delete.do")
    @NotNull
    Observable<BaseResponse<Object>> L(@Field("paperIds") @NotNull String str);

    @POST("/api/appconfig/query.do")
    @NotNull
    Observable<BaseResponse<AppConfigEntity>> M(@Header("version") @NotNull String str, @Header("configversion") @NotNull String str2);

    @POST("/api/cuoti.input/simpleSubmit.do")
    @NotNull
    Observable<BaseResponse<Object>> N(@Body @NotNull RequestBody zVar);

    @POST("/api/paper/queryPrintConfig.do")
    @NotNull
    Observable<BaseResponse<PrintConfigEntity>> O();

    @FormUrlEncoded
    @POST("/api/video/textbook.do")
    @NotNull
    Observable<BaseResponse<VideoTextBookEntity>> P(@Field("grade") int i2);

    @POST("/api/paper/queryConfig.do")
    @NotNull
    Observable<BaseResponse<PaperConfig>> Q();

    @FormUrlEncoded
    @POST("/api/video/detail.do")
    @NotNull
    Observable<BaseResponse<VideoUrlEntity>> R(@Field("textbookId") int i2, @Field("videoKey") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/user/saveChild.do")
    @NotNull
   Observable<BaseResponse<ChildEntity>> S(@Field("childName") @NotNull String str, @Field("grade") int i2, @Field("code") @NotNull String str2, @Field("id") int i3);

    @POST("/api/user/homePageBannerList.do")
    @NotNull
   Observable<BaseResponse<BannerListEntity>> T();

    @FormUrlEncoded
    @POST("/api/vocabularyBooks/queryFinish.do")
    @NotNull
   Observable<BaseResponse<QueryFinishEntity>> U(@Field("fileKey") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/paper/queryFinish.do")
    @NotNull
   Observable<BaseResponse<QueryFinishEntity>> V(@Field("fileKey") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/vocabularyBooks/reGetFileKey.do")
    @NotNull
   Observable<BaseResponse<PrintV2Entity>> W(@Field("fileKey") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/paper/print.do")
    @NotNull
   Observable<BaseResponse<PrintEntity>> X(@Field("paperId") int i2, @Field("templateId") @Nullable Integer num);

    @FormUrlEncoded
    @POST("/api/cuoti.input/textExtraction.do")
    @NotNull
   Observable<BaseResponse<String>> Y(@Field("transactionId") @NotNull String str, @Field("subTaskId") int i2, @Field("imgUrl") @NotNull String str2);

    @POST("/api/user/queryAllCourse.do")
    @NotNull
   Observable<BaseResponse<SubjectManagerEntity>> Z();

    @FormUrlEncoded
    @POST("/api/cuoti.input/submit.do")
    @NotNull
   Observable<BaseResponse<Object>> a(@Field("transactionId") @NotNull String str, @Field("subTaskId") int i2, @Field("imgUrl") @NotNull String str2, @Field("courseId") int i3, @Field("handRemoveUrl") @NotNull String str3, @Field("completeTransaction") boolean z, @Field("answerText") @NotNull String str4);

    @POST("/api/user/cancel.do")
    @NotNull
   Observable<BaseResponse<Object>> a0();

    @POST("/api/user/queryAllGrade.do")
    @NotNull
   Observable<BaseResponse<List<GradeEntity>>> b();

    @FormUrlEncoded
    @POST("/api/event/track.do")
    @NotNull
   Observable<BaseResponse<Object>> b0(@Field("eventId") @NotNull String str, @Field("eventData") @Nullable String str2, @Field("deviceId") @NotNull String str3);

    @FormUrlEncoded
    @POST("/api/user/oneclickLogin.do")
    @NotNull
   Observable<BaseResponse<LoginEntity>> c(@Field("accessToken") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/paper/rename.do")
    @NotNull
   Observable<BaseResponse<Object>> c0(@Field("paperId") int i2, @Field("name") @NotNull String str);

    @POST("/api/cuoti.input/imgUpload.do")
    @NotNull
    @Multipart
   Observable<BaseResponse<ImageUploadEntity>> d(@NotNull @Part MultipartBody.Part bVar);

    @FormUrlEncoded
    @POST("/api/paper.input/clean.do")
    @NotNull
   Observable<BaseResponse<CleanEntity>> d0(@Field("imageUrl") @NotNull String str, @Field("type") int i2);

    @FormUrlEncoded
    @POST("/api/user/saveChild.do")
    @NotNull
   Observable<BaseResponse<ChildEntity>> e(@Field("childName") @NotNull String str, @Field("grade") int i2, @Field("code") @NotNull String str2);

    @FormUrlEncoded
    @POST("/api/user/changeNickName.do")
    @NotNull
   Observable<BaseResponse<Object>> e0(@Field("nickName") @NotNull String str);

    @POST("/api/user/flawSweeper.do")
    @NotNull
   Observable<BaseResponse<CuotiEntity>> f();

    @POST("/api/cuoti.input/imagebox.do")
    @NotNull
   Observable<BaseResponse<ImageBoxEntity>> f0(@Body @NotNull RequestBody zVar);

    @FormUrlEncoded
    @POST("/api/cuoti.input/submit.do")
    @NotNull
   Observable<BaseResponse<Object>> g(@Field("transactionId") @NotNull String str, @Field("subTaskId") int i2, @Field("imgUrl") @NotNull String str2, @Field("courseId") int i3, @Field("questionId") @NotNull String str3, @Field("completeTransaction") boolean z);

    @POST("/api/paper.input/upload.do")
    @NotNull
    @Multipart
   Observable<BaseResponse<ImageEntity>> g0(@NotNull @Part MultipartBody.Part bVar);

    @FormUrlEncoded
    @POST("/api/video/classList.do")
    @NotNull
   Observable<BaseResponse<List<VideoItemEntity>>> h(@Field("textbookId") int i2);

    @FormUrlEncoded
    @POST("/api/cuotiReplenish/get.do")
    @NotNull
   Observable<BaseResponse<List<OptionsEntity>>> h0(@Field("problemId") int i2);

    @FormUrlEncoded
    @POST("/api/user/saveCourse.do")
    @NotNull
   Observable<BaseResponse<SubjectManagerEntity>> i(@Field("operation") int i2, @Field("courseId") int i3);

    @FormUrlEncoded
    @POST("/api/paper/list.do")
    @NotNull
   Observable<BaseResponse<GroupRecordEntity>> j(@FieldMap @NotNull HashMap<String, Integer> hashMap, @Field("desc") boolean z);

    @FormUrlEncoded
    @POST("/api/sale/listProduct.do")
    @NotNull
   Observable<BaseResponse<List<ProductEntity>>> k(@Field("productType") @Nullable String str);

    @FormUrlEncoded
    @POST("/api/user/saveScheam.do")
    @NotNull
   Observable<BaseResponse<Object>> l(@Field("schema") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/ai/listChatTimeRecords.do")
    @NotNull
   Observable<BaseResponse<AiDetailEntity>> m(@Field("desc") boolean z, @Field("pageNo") int i2, @Field("pageSize") int i3);

    @FormUrlEncoded
    @POST("/api/cuotilist/details.do")
    @NotNull
   Observable<BaseResponse<ProblemDetailEntity>> n(@Field("problemId") int i2);

    @FormUrlEncoded
    @POST("/api/user/saveChild.do")
    @NotNull
   Observable<BaseResponse<ChildEntity>> o(@Field("childName") @NotNull String str, @Field("id") int i2);

    @FormUrlEncoded
    @POST("/api/cuoti.input/handremove.do")
    @NotNull
   Observable<BaseResponse<String>> p(@Field("transactionId") @NotNull String str, @Field("subTaskId") int i2, @Field("imgUrl") @NotNull String str2);

    @FormUrlEncoded
    @POST("/api/user/switchGrade.do")
    @NotNull
   Observable<BaseResponse<Object>> q(@Field("grade") int i2, @Field("code") @NotNull String str);

    @FormUrlEncoded
    @POST("/api/user/changeMobile.do")
    @NotNull
   Observable<BaseResponse<Object>> r(@Field("mobile") @NotNull String str, @Field("msgCode") @NotNull String str2);

    @FormUrlEncoded
    @POST("/api/user/smsSend.do")
    @NotNull
   Observable<BaseResponse<Object>> s(@Field("mobile") @NotNull String str, @Field("sceneId") int i2);

    @FormUrlEncoded
    @POST("/api/video/detail.do")
    @NotNull
   Observable<BaseResponse<VideoDetailEntity>> t(@Field("textbookId") int i2, @Field("videoKey") @NotNull String str);

    @POST("/api/cuoti.input/match.do")
    @NotNull
   Observable<BaseResponse<MatchEntity>> u(@Body @NotNull RequestBody zVar);

    @FormUrlEncoded
    @POST("/api/cuoti.input/submitV2.do")
    @NotNull
   Observable<BaseResponse<Object>> v(@FieldMap @NotNull Map<String, Object> map);

    @POST("/api/paper.input/upload.do")
    @NotNull
    @Multipart
   Observable<BaseResponse<UploadEntity>> w(@NotNull @Part MultipartBody.Part bVar);

    @POST("/api/user/myCentre.do")
    @NotNull
   Observable<BaseResponse<MyCentreEntity>> x();

    @FormUrlEncoded
    @POST("/api/paper.input/pdf.do")
    @NotNull
   Observable<BaseResponse<UploadPdfEntity>> y(@Field("imageList") @NotNull String str, @Field("paperName") @NotNull String str2);

    @FormUrlEncoded
    @POST("/api/user/loginandreg.do")
    @NotNull
   Observable<BaseResponse<LoginEntity>> z(@Field("mobile") @NotNull String str, @Field("msgCode") @NotNull String str2, @Field("agreement") boolean z);
}